Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature-power tag for notes grid with specific tagname #3204

Closed

Conversation

ViditChitkara
Copy link
Member

closes #1097

@ghost ghost assigned ViditChitkara Aug 5, 2018
@ghost ghost added the in progress label Aug 5, 2018
@plotsbot
Copy link
Collaborator

plotsbot commented Aug 5, 2018

1 Message
📖 @ViditChitkara Thank you for your pull request! I’m here to help with some tips and recommendations. Please take a look at the list provided and help us review and accept your contribution! And don’t be discouraged if you see errors – we’re here to help.

Generated by 🚫 Danger

@@ -79,6 +79,7 @@ def locale_name_pairs
end

def insert_extras(body)
body = NodeShared.notes_inline_grid(body)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this looks great... but I think there should be a lot of overlap with the notes_grid method... do you think we could consolidate those two? In theory it should be relatively close ActiveRecord queries, but displayed differently, don't you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, makes sense!! I see the methods notes_grid and notes_inline_grid differ only in rendering the templates. Both render different templates having same active-record queries. So, let's keep a single function with a parameter (say thumbnails=false by default) and change the template accordingly?

@jywarren
Copy link
Member

jywarren commented Aug 6, 2018 via email

@grvsachdeva
Copy link
Member

@ViditChitkara want to give this a push? Thanks!

@grvsachdeva
Copy link
Member

Actually, the issue is solved in #3970. So, closing this PR. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

develop notes:tagname inline tag alternative to display a grid of notes, not a table
4 participants